package com.example.demo.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Fyly
 * @since 2019-02-28
 */
@TableName("userinfo")
public class Userinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    @TableField("userId")
    private Integer userId;
    /**
     * 昵称
     */
    @TableField("nickName")
    private String nickName;
    /**
     * 头像地址
     */
    @TableField("avatarUrl")
    private String avatarUrl;
    /**
     * 性别
     */
    @TableField("gender")
    private String gender;
    /**
     * 年龄
     */
    @TableField("age")
    private Integer age;
    /**
     * 星座
     */
    @TableField("constellation")
    private String constellation;
    /**
     * 学校
     */
    @TableField("school")
    private String school;
    /**
     * 个性签名
     */
    @TableField("autograph")
    private String autograph;
    /**
     * 余额
     */
    @TableField("balance")
    private Integer balance;
    /**
     * 经度
     */
    @TableField("lon")
    private Float lon;
    /**
     * 纬度
     */
    @TableField("lat")
    private Float lat;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getConstellation() {
        return constellation;
    }

    public void setConstellation(String constellation) {
        this.constellation = constellation;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getAutograph() {
        return autograph;
    }

    public void setAutograph(String autograph) {
        this.autograph = autograph;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public Float getLon() {
        return lon;
    }

    public void setLon(Float lon) {
        this.lon = lon;
    }

    public Float getLat() {
        return lat;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    @Override
    public String toString() {
        return "Userinfo{" +
        "id=" + id +
        ", userId=" + userId +
        ", nickName=" + nickName +
        ", avatarUrl=" + avatarUrl +
        ", gender=" + gender +
        ", age=" + age +
        ", constellation=" + constellation +
        ", school=" + school +
        ", autograph=" + autograph +
        ", balance=" + balance +
        ", lon=" + lon +
        ", lat=" + lat +
        "}";
    }
}
